{% extends "forum/base.html" %}
{% comment %}
<!--
  Copyright (C) 2008 ZHENG Zhong <heavyzheng nospam at gmail D0T com>
  - http://heavyz.blogspot.com/
  - http://buggarden.blogspot.com/
  
  The page for creating a new forum board.
  
  File created on 2008-10-21.
  $Id: create_board.html 251 2008-10-27 15:06:45Z heavyzheng $
-->
{% endcomment %}

{#------------------------------------------------------------------------------------------------#}

{% block html_head %}

<title>Create a new board :: Bug Garden Forum</title>

<script type="text/javascript">//<![CDATA[
  
  function submitCreateBoardForm() {
    // Display the "submitting" image.
    $("#create_board .form"      ).hide();
    $("#create_board .submitting").show("slow");
    // Submit the form.
    $("#create_board .form form" ).submit();
  }

//]]></script>

{% endblock %}{# html_head #}

{#------------------------------------------------------------------------------------------------#}

{% block header %}
<div class="title">Create a new board</div>
{% endblock %}{# header #}

{#------------------------------------------------------------------------------------------------#}

{% block content %}

<div id="create_board" class="section">

  <div class="form">
    {% if user %}
      <form action="." method="POST">
        <p>
          <b>Board Name:</b><br/>
          <input name="name" type="text" size="60"/>
        </p>
        <p>
          <b>Description:</b><br/>
          <input name="desc" type="text" size="60"/>
        </p>
        <p>
          You are logged in as <b>{{ user.email }}</b>.
        </p>
        <p>
          <input type="submit" name="create" value="Create" onclick="submitCreateBoardForm();"/>
          Or, <a href="/forum/">go back to the forum</a>.
        </p>
      </form>
    {% else %}
      You are not logged in. To request a new board, you need to login first.<br/>
      <a href="{{ log_url }}">Login</a>
      or
      <a href="/forum/">Cancel</a>.              
    {% endif %}
  </div>
  
  <div class="submitting hidden">
    <img src="/static/forum/images/waiting.gif" alt="waiting.gif"/>
    Sending your request... Please wait...
  </div>

</div><!--/#create_board-->

{% endblock %}{# content #}



